/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include <节点/节点.h>

#include "../ui节点面板.h"




//typedef void(*fp_节点创建视口回调)(C_Widget* node, bool 是否清除以前激活节点);


void		f_init_物体节点创建_绑定视口回调(fp_节点创建视口回调 fun, fp_节点添加到视口回调 多节点创建回调);


void on_2级几何节点创建菜单项(C_Widget* self, const std::wstring name, uint16 id);
void on_2级物体节点创建菜单项(C_Widget* self, const std::wstring name, uint16 id);
void on_2级灯光节点创建菜单项(C_Widget* self, const std::wstring name, uint16 id);
S_菜单创建参数 f_menu参数_灯光();

C_Widget*	f_init物体节点创建菜单(S_UI创建环境& ctx);
C_Widget*	f_init多边形节点创建菜单(S_UI创建环境& ctx);
C_Widget*	f_init材质节点创建菜单(S_UI创建环境& ctx);
C_Widget*  f_init着色器节点创建菜单(S_UI创建环境& ctx);
C_Widget*	f_init函数节点创建菜单(S_UI创建环境& ctx);





C_节点面板*	f_节点构建_重构(C_节点面板* plane, C_节点基类* node);

C_节点面板* f_节点构建_从节点构建节点(C_节点基类* plane, bool 是否关联, bool 创建新节点);
C_节点面板* f_节点构建_从节点构建节点面板(C_节点基类* plane, bool 是否关联);

C_节点面板* f_节点构建_用名称构建节点面板(const std::string& 节点类型名称);





